home *** CD-ROM | disk | FTP | other *** search
/ Directorty Opus 5 - Magellan 2 / Opus 5 - Magellan 2.iso / Extras / opussdk / include / dopus / notify.h < prev    next >
C/C++ Source or Header  |  1996-09-05  |  2KB  |  62 lines

  1. #ifndef _DOPUS_NOTIFY
  2. #define _DOPUS_NOTIFY
  3.  
  4. /*****************************************************************************
  5.  
  6.  Notification
  7.  
  8.  *****************************************************************************/
  9.  
  10. // Notification message
  11. typedef struct
  12. {
  13.     struct Message        dn_Msg;        // Message header
  14.     ULONG            dn_Type;    // Type of message
  15.     ULONG            dn_UserData;    // User-supplied data
  16.     ULONG            dn_Data;    // Message-specific data
  17.     ULONG            dn_Flags;    // Flags
  18.     struct FileInfoBlock    *dn_Fib;    // FIB for some messages
  19.     char            dn_Name[1];    // Name for some messages
  20. } DOpusNotify;
  21.  
  22. // dn_Msg.mn_Node.ln_Type
  23. #define NT_DOPUS_NOTIFY        199
  24.  
  25. // dn_Type
  26. #define DN_WRITE_ICON        (1<<0)        // Icon written
  27. #define DN_APP_ICON_LIST    (1<<1)        // AppIcon added/removed
  28. #define DN_APP_MENU_LIST    (1<<2)        // AppMenu added/removed
  29. #define DN_CLOSE_WORKBENCH    (1<<3)        // Workbench closed
  30. #define DN_OPEN_WORKBENCH    (1<<4)        // Workbench opened
  31. #define DN_RESET_WORKBENCH    (1<<5)        // Workbench reset
  32. #define DN_DISKCHANGE        (1<<6)        // Disk inserted/removed
  33. #define DN_OPUS_QUIT        (1<<7)        // Main program quit
  34. #define DN_OPUS_HIDE        (1<<8)        // Main program hide
  35. #define DN_OPUS_SHOW        (1<<9)        // Main program show
  36. #define DN_OPUS_START        (1<<10)        // Main program start
  37. #define DN_DOS_ACTION        (1<<11)        // DOS action
  38. #define DN_REXX_UP        (1<<12)        // REXX started
  39.  
  40. // Flags with DN_WRITE_ICON
  41. #define DNF_ICON_REMOVED    (1<<0)        // Icon removed
  42. #define DNF_ICON_CHANGED    (1<<1)        // Image changed
  43.  
  44. // Flags with DN_DOS_ACTION
  45. #define DNF_DOS_CREATEDIR    (1<<0)        // CreateDir
  46. #define DNF_DOS_DELETEFILE    (1<<1)        // DeleteFile
  47. #define DNF_DOS_SETFILEDATE    (1<<2)        // SetFileDate
  48. #define DNF_DOS_SETCOMMENT    (1<<3)        // SetComment
  49. #define DNF_DOS_SETPROTECTION    (1<<4)        // SetProtection
  50. #define DNF_DOS_RENAME        (1<<5)        // Rename
  51. #define DNF_DOS_CREATE        (1<<6)        // Open file (create)
  52. #define DNF_DOS_CLOSE        (1<<7)        // Close file
  53. #define DNF_DOS_RELABEL        (1<<8)        // Relabel disk
  54.  
  55. APTR AddNotifyRequest(ULONG,ULONG,struct MsgPort *);
  56. void RemoveNotifyRequest(APTR);
  57. void ReplyFreeMsg(struct Message *);
  58. void SetNotifyRequest(APTR,ULONG,ULONG);
  59.  
  60.  
  61. #endif
  62.